<HTML><HEAD><TITLE>All_About_Your_64-Online-Help Version 0.64</TITLE></HEAD>
<BODY><PRE>

 $EA87/60039:   Scan Keyboard

Jump from <A HREF="ROMEA31.HTM">$EA7B</A>, <A HREF="ROMFF9F.HTM">$FF9F</A>:

EA87: A9 00     <A HREF="BLDA.HTM">LDA</A> #$00
EA89: 8D 8D 02  <A HREF="BSTA.HTM">STA</A> <A HREF="ZP028D.HTM">$028D</A>     ; Flag: Shift Keys
EA8C: A0 40     <A HREF="BLDY.HTM">LDY</A> #$40
EA8E: 84 CB     <A HREF="BSTY.HTM">STY</A> <A HREF="ZPC5.HTM">$CB</A>       ; Matrix value of last Key pressed
EA90: 8D 00 DC  <A HREF="BSTA.HTM">STA</A> <A HREF="CIA10.HTM">$DC00</A>     ; CIA1: Data Port A (Keyboard, Joystick, Paddles)
EA93: AE 01 DC  <A HREF="BLDX.HTM">LDX</A> <A HREF="CIA11.HTM">$DC01</A>     ; CIA1: Data Port B (Keyboard, Joystick, Paddles)
EA96: E0 FF     <A HREF="BCPX.HTM">CPX</A> #$FF
EA98: F0 61     <A HREF="BBEQ.HTM">BEQ</A> <A HREF="ROMEADD.HTM">$EAFB</A>     ; Process Key Image
EA9A: A8        <A HREF="BTAY.HTM">TAY</A>
EA9B: A9 81     <A HREF="BLDA.HTM">LDA</A> #$81
EA9D: 85 F5     <A HREF="BSTA.HTM">STA</A> <A HREF="ZPF5.HTM">$F5</A>       ; Vector: Current Keyboard decoding Table
EA9F: A9 EB     <A HREF="BLDA.HTM">LDA</A> #$EB
EAA1: 85 F6     <A HREF="BSTA.HTM">STA</A> <A HREF="ZPF5.HTM">$F6</A>       ; Vector: Current Keyboard decoding Table
EAA3: A9 FE     <A HREF="BLDA.HTM">LDA</A> #$FE
EAA5: 8D 00 DC  <A HREF="BSTA.HTM">STA</A> <A HREF="CIA10.HTM">$DC00</A>     ; CIA1: Data Port A (Keyboard, Joystick, Paddles)

Jump from $EADA:

EAA8: A2 08     <A HREF="BLDX.HTM">LDX</A> #$08
EAAA: 48        <A HREF="BPHA.HTM">PHA</A>

Jump from $EAB1:

EAAB: AD 01 DC  <A HREF="BLDA.HTM">LDA</A> <A HREF="CIA11.HTM">$DC01</A>     ; CIA1: Data Port B (Keyboard, Joystick, Paddles)
EAAE: CD 01 DC  <A HREF="BCMP.HTM">CMP</A> <A HREF="CIA11.HTM">$DC01</A>     ; CIA1: Data Port B (Keyboard, Joystick, Paddles)
EAB1: D0 F8     <A HREF="BBNE.HTM">BNE</A> $EAAB

Jump from $EAD2:

EAB3: 4A        <A HREF="BLSR.HTM">LSR</A>
EAB4: B0 16     <A HREF="BBCS.HTM">BCS</A> $EACC
EAB6: 48        <A HREF="BPHA.HTM">PHA</A>
EAB7: B1 F5     <A HREF="BLDA.HTM">LDA</A> (<A HREF="ZPF5.HTM">$F5</A>),Y   ; Vector: Current Keyboard decoding Table
EAB9: C9 05     <A HREF="BCMP.HTM">CMP</A> #$05
EABB: B0 0C     <A HREF="BBCS.HTM">BCS</A> $EAC9
EABD: C9 03     <A HREF="BCMP.HTM">CMP</A> #$03
EABF: F0 08     <A HREF="BBEQ.HTM">BEQ</A> $EAC9
EAC1: 0D 8D 02  <A HREF="BORA.HTM">ORA</A> <A HREF="ZP028D.HTM">$028D</A>     ; Flag: Shift Keys
EAC4: 8D 8D 02  <A HREF="BSTA.HTM">STA</A> <A HREF="ZP028D.HTM">$028D</A>     ; Flag: Shift Keys
EAC7: 10 02     <A HREF="BBPL.HTM">BPL</A> $EACB

Jump from $EABB, $EABF:

EAC9: 84 CB     <A HREF="BSTY.HTM">STY</A> <A HREF="ZPC5.HTM">$CB</A>       ; Matrix value of last Key pressed

Jump from $EAC7:

EACB: 68        <A HREF="BPLA.HTM">PLA</A>

Jump from $EAB4:

EACC: C8        <A HREF="BINY.HTM">INY</A>
EACD: C0 41     <A HREF="BCPY.HTM">CPY</A> #$41
EACF: B0 0B     <A HREF="BBCS.HTM">BCS</A> $EADC
EAD1: CA        <A HREF="BDEX.HTM">DEX</A>
EAD2: D0 DF     <A HREF="BBNE.HTM">BNE</A> $EAB3
EAD4: 38        <A HREF="BSEC.HTM">SEC</A>
EAD5: 68        <A HREF="BPLA.HTM">PLA</A>
EAD6: 2A        <A HREF="BROL.HTM">ROL</A>
EAD7: 8D 00 DC  <A HREF="BSTA.HTM">STA</A> <A HREF="CIA10.HTM">$DC00</A>     ; CIA1: Data Port A (Keyboard, Joystick, Paddles)
EADA: D0 CC     <A HREF="BBNE.HTM">BNE</A> $EAA8

Jump from $EACF:

EADC: 68        <A HREF="BPLA.HTM">PLA</A>

    <A HREF="ROMEA81.HTM">Previous Page</A> / <A HREF="ROMEADD.HTM">Next Page</A>

</PRE></BODY></HTML>
